


iptables -A INPUT -p tcp -s 47.97.219.192 -m state --state NEW,ESTABLISHED -j ACCEPT



iptables -A OUTPUT -p tcp -d 192.168.100.0/24 --dport 8090 -m state --state NEW,ESTABLISHED -j ACCEPT


#!/usr/bin/env bash

iptables -F
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT DROP
iptables -I OUTPUT -d 47.97.219.192 -p tcp -m multiport --dport 8090,8701,21,22 -j ACCEPT
iptables -I INPUT -s 47.97.219.192 -p tcp -m multiport --sport 8090,8701,21,22 -j ACCEPT



#!/usr/bin/env bash

iptables -F
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT DROP
iptables -I OUTPUT -d gateway.95516.com -p tcp -m multiport --dport 443 -j ACCEPT
iptables -I INPUT -s 36.152.44.95 -p tcp -m multiport --sport 8090,8701,80 -j ACCEPT


#!/usr/bin/env bash

iptables -F
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -I OUTPUT -d 47.97.219.192  -j DROP
iptables -I INPUT -s 47.97.219.192  -j DROP



iptables -A OUTPUT -d 47.97.219.192  -j DROP
iptables -A INPUT -s 47.97.219.192  -j DROP

